import Fluent

struct CreateDepartment: Migration {
    func prepare(on database: Database) -> EventLoopFuture<Void> {
        database.schema("department")
            .id()
            .field("name", .string)
            .create()
    }
    
    
    func revert(on database: Database) -> EventLoopFuture<Void> {
        database.schema("department").delete()
    }
    
}

